/*************************************************************************
	> File Name: 1.string_match.cpp
	> Author: 
	> Mail: 
	> Created Time: 四  5/13 22:28:04 2021
 ************************************************************************/

#include<iostream>
using namespace std;

// s:文本串 t:模式串 
int brute_force(const char *s, const char *t) {
    for (int i = 0; s[i]; i++) {
        int flag = 0;
        for (int j = 0; t[j]; j++) {
            if (s[i + j] == t[j]) {
                //printf("%d - %d : yes\n", i + j, j);
                printf("%c - %c : yes\n", s[i + j], t[j]);
                continue;
            } else {
                //printf("%d - %d : no\n", i + j, j);
                printf("%c - %c : no\n", s[i + j], t[j]);
                flag = 1;
                break;
            }
        }
        if (flag == 0) return i;
    }
    return -1;
}

int main() {
    char s[100], t[100];
    while (~scanf("%s%s", s, t)) {
        printf("find %s in %s : %d", t, s, brute_force(s, t));
    }

    return 0;
}
